// Views - Pages
import backG from '@/view/pages/upl/index'
import login from '@/view/pages/upl/login'
import forgetPassword from '@/view/pages/upl/forgetPassword'
import bindPhone from '@/view/pages/upl/bindPhone'
import information from '@/view/pages/upl/information'

const route = [
    {
       path:'/upl',
       redirect:'/upl/login',
       name:'登陆入口',
       component:backG,
    //  needToken 判断是否需要验证登陆的页面，ture为需要验证,false为不需要验证
       meta:{needToken:false,title:'登陆'},
       children:[
           {
               path:'login',
               name:'登陆页面',
               component:login,
               meta:{needToken:false,title:'注册/登陆'},
           },
           {
            path:'forgetPassword',
            name:'忘记密码',
            component:forgetPassword,
            meta:{needToken:false,title:'忘记密码'},
           },
           {
            path:'bindPhone',
            name:'绑定手机号',
            component:bindPhone,
            meta:{needToken:false,title:'忘记密码'},
           },
           {
            path:'information',
            name:'完善资料',
            component:information,
            meta:{needToken:false,title:'完善资料'},
           }
       ],
    },
];

export default route;
